package com.sinosoft.front.service;

public class PremiumCaculateServicePortTypeProxy implements com.sinosoft.front.service.PremiumCaculateServicePortType {
  private String _endpoint = null;
  private com.sinosoft.front.service.PremiumCaculateServicePortType premiumCaculateServicePortType = null;
  
  public PremiumCaculateServicePortTypeProxy() {
    _initPremiumCaculateServicePortTypeProxy();
  }
  
  public PremiumCaculateServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initPremiumCaculateServicePortTypeProxy();
  }
  
  private void _initPremiumCaculateServicePortTypeProxy() {
    try {
      premiumCaculateServicePortType = (new com.sinosoft.front.service.PremiumCaculateServiceLocator()).getPremiumCaculateServiceHttpSoap11Endpoint();
      if (premiumCaculateServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)premiumCaculateServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)premiumCaculateServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (premiumCaculateServicePortType != null)
      ((javax.xml.rpc.Stub)premiumCaculateServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sinosoft.front.service.PremiumCaculateServicePortType getPremiumCaculateServicePortType() {
    if (premiumCaculateServicePortType == null)
      _initPremiumCaculateServicePortTypeProxy();
    return premiumCaculateServicePortType;
  }
  
  public com.sinosoft.front.dto.xsd.PremiumCaculateResponse premiumCaculate(com.sinosoft.front.dto.xsd.PremiumCaculateRequest request) throws java.rmi.RemoteException{
    if (premiumCaculateServicePortType == null)
      _initPremiumCaculateServicePortTypeProxy();
    return premiumCaculateServicePortType.premiumCaculate(request);
  }
  
  public com.sinosoft.front.busInterface.xsd.PremiumCaculateTpCheckInterface getPremiumCaculateTpCheckInterface() throws java.rmi.RemoteException{
    if (premiumCaculateServicePortType == null)
      _initPremiumCaculateServicePortTypeProxy();
    return premiumCaculateServicePortType.getPremiumCaculateTpCheckInterface();
  }
  
  public com.sinosoft.front.busInterface.xsd.PremiumCaculateTpInterface getPremiumCaculateTpInterface() throws java.rmi.RemoteException{
    if (premiumCaculateServicePortType == null)
      _initPremiumCaculateServicePortTypeProxy();
    return premiumCaculateServicePortType.getPremiumCaculateTpInterface();
  }
  
  public void setPremiumCaculateTpInterface(com.sinosoft.front.busInterface.xsd.PremiumCaculateTpInterface premiumCaculateTpInterface) throws java.rmi.RemoteException{
    if (premiumCaculateServicePortType == null)
      _initPremiumCaculateServicePortTypeProxy();
    premiumCaculateServicePortType.setPremiumCaculateTpInterface(premiumCaculateTpInterface);
  }
  
  public void setPremiumCaculateTpCheckInterface(com.sinosoft.front.busInterface.xsd.PremiumCaculateTpCheckInterface premiumCaculateTpCheckInterface) throws java.rmi.RemoteException{
    if (premiumCaculateServicePortType == null)
      _initPremiumCaculateServicePortTypeProxy();
    premiumCaculateServicePortType.setPremiumCaculateTpCheckInterface(premiumCaculateTpCheckInterface);
  }
  
  
}